package demo.ioc.bean;

/**
 * @author m0v1
 * @date 2021年09月02日 8:02 上午
 */
public class SimpleBean {
	private String beanId;
	private String beanName;

	public SimpleBean() {
		System.out.println(this.getClass().getSimpleName() + " has been instantiated!");
	}

	public String getBeanId() {
		return beanId;
	}

	public void setBeanId(String beanId) {
		System.out.println("setter method has been invoked!");
		this.beanId = beanId;
	}

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	@Override
	public String toString() {
		return "SimpleBean{" +
				"beanId='" + beanId + '\'' +
				", beanName='" + beanName + '\'' +
				'}';
	}
}
